x86/vm_event: add HVM debug exception vm_events
authorTamas K Lengyel <tamas@tklengyel.com>
Mon, 4 Jul 2016 10:10:00 +0000 (12:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Jul 2016 10:10:00 +0000 (12:10 +0200)
commit94db5dbb6c5f331dac35a8723a5d982ad17536d6
tree2e91f105c54124432da8e6114d71e40948f8e698
parentd0fd9ae54491328b10dee4003656c14b3bf3d3e9
x86/vm_event: add HVM debug exception vm_events

Since in-guest debug exceptions are now unconditionally trapped to Xen, adding
a hook for vm_event subscribers to tap into this new always-on guest event. We
rename along the way hvm_event_breakpoint_type to hvm_event_type to better
match the various events that can be passed with it. We also introduce the
necessary monitor_op domctl's to enable subscribing to the events.

This patch also provides monitor subscribers to int3 events proper access
to the instruction length necessary for accurate event-reinjection. Without
this subscribers manually have to evaluate if the int3 instruction has any
prefix attached which would change the instruction length.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
tools/tests/xen-access/xen-access.c
xen/arch/x86/hvm/monitor.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/monitor.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/hvm/monitor.h
xen/include/asm-x86/monitor.h
xen/include/public/domctl.h
xen/include/public/vm_event.h